<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/aftersaleinfo/q_after_return_not/q_after_return_not.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/aftersaleinfo/q_after_return_not/q_after_return_not.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'After_deliveryList',
                footer: "Foots",
                cnName: '售后未退货商品',
                name: 'q_after_return_not/q_after_return_not',
                url: "/q_after_return_not/",
                sortName: "Voucher_sub"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"Voucher_sub":"","client_name":"","Goods_name":"","WHSE_name":""});
            const searchFormOptions = ref([[{"title":"售后发货单","field":"Voucher_sub","type":"like"},{"dataKey":"审核通过客户","data":[],"title":"客户","field":"client_name","type":"select"},{"title":"商品名称","field":"Goods_name","type":"like"},{"dataKey":"库位编码","data":[],"title":"库位名称","field":"WHSE_name","type":"select"}]]);
            const columns = ref([{field:'Voucher_sub',title:'售后发货单',type:'string',width:120,align:'left',sort:true},
                       {field:'client_name',title:'客户',type:'string',bind:{ key:'审核通过客户',data:[]},width:120,align:'left'},
                       {field:'After_deliveryList',title:'售后发货单明细ID',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'Goods_sub',title:'商品编码',type:'string',width:110,align:'left'},
                       {field:'Goods_name',title:'商品名称',type:'string',width:220,align:'left'},
                       {field:'Goods_size',title:'商品规格',type:'string',width:110,align:'left'},
                       {field:'Goods_num',title:'未退货数量',type:'float',width:110,align:'left'},
                       {field:'Goods_price',title:'发货单价',type:'decimal',width:110,hidden:true,require:true,align:'left'},
                       {field:'CostPrice',title:'成本价',type:'decimal',width:110,hidden:true,require:true,align:'left'},
                       {field:'Tax_exclusive',title:'无税成本',type:'decimal',width:110,hidden:true,require:true,align:'left'},
                       {field:'goodsInventoryWarehouseXm',title:'goodsInventoryWarehouseXm',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'WHSE_name',title:'库位名称',type:'string',bind:{ key:'库位编码',data:[]},width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
